
#ifdef a
//判断一个字符串是否是回文字符串
#include<stdio.h>
#include<string.h>
Judeg_Palindrome(const char* arr, int length) {
    int left, right;
    left = 0;
    right = length - 1;
    while (left < right && arr[left++] == arr[right--]) { ; }
    if (left >= right)
        return 1;
    else
        return 0;
}
int main() {
    char* arr = "abcdcba";
    int length = strlen(arr);
    int ret = Judeg_Palindrome(arr, length);
    if (ret)
        printf("%s 是回文字符串\n", arr);
    else
        printf("%s 不是回文字符串\n", arr);
    return 0;
}
#endif
